//
//  OrderModel.h
//  B2C
//
//  Created by 李小龙 on 2017/8/1.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ShopcartModel.h"

@interface OtopsModel : NSObject

@property (nonatomic, copy) NSString *ftaid;    // 主属性id
@property (nonatomic, copy) NSString *ftaname;  // 主属性名称
@property (nonatomic, copy) NSString *ogid;
@property (nonatomic, copy) NSString *opid;
@property (nonatomic, copy) NSString *taid;     // 属性id
@property (nonatomic, copy) NSString *taname;   // 属性名称

@end

@interface OrdersonModel : NSObject

@property (nonatomic, copy) NSString *omtype;       // 0普通 1积分 2秒杀 3代购 4附近门店 5促销
@property (nonatomic, copy) NSString *gid;          // 商品id
@property (nonatomic, copy) NSString *omid;         // 订单编号
@property (nonatomic, copy) NSString *scid;         // 购物车id
@property (nonatomic, copy) NSString *sid;          // 商店id
@property (nonatomic, copy) NSString *suid;         // 供货商id
@property (nonatomic, copy) NSString *uid;          // 渠道商id
@property (nonatomic, copy) NSString *gcid;         // 一级分类id
@property (nonatomic, copy) NSString *gtcid;        // 二级分类id
@property (nonatomic, copy) NSString *gtrcid;
@property (nonatomic, copy) NSString *ogid;         // 子订单id
@property (nonatomic, copy) NSString *createtime;   // 创建时间
@property (nonatomic, copy) NSString *gbarcode;     // 条形码
@property (nonatomic, copy) NSString *gdetails;     // 商品详情url
@property (nonatomic, copy) NSString *gextension;   // 推广信息
@property (nonatomic, copy) NSString *ghomeimg;     // 首页缩略图
@property (nonatomic, copy) NSString *gimg;         // 商品主图片
@property (nonatomic, copy) NSString *gintegral;    // 积分
@property (nonatomic, copy) NSString *gname;        // 商品名称
@property (nonatomic, copy) NSString *gnumber;      // 商品编号
@property (nonatomic, copy) NSString *gprice;       // 现价
@property (nonatomic, copy) NSString *gpromotionprice;  // 促销价
@property (nonatomic, copy) NSString *gseckill;     // 秒杀
@property (nonatomic, copy) NSString *gstarttime;   // 秒杀开始时间
@property (nonatomic, copy) NSString *gweight;      // 重量
@property (nonatomic, copy) NSString *ognumber;     // 数量
@property (nonatomic, copy) NSString *ogremark;
@property (nonatomic, copy) NSString *supplyprice;  // 供货价
@property (nonatomic, assign) BOOL isabroad;        // 是否境外
@property (nonatomic, assign) BOOL isdiscount;      // 是否参与优惠
@property (nonatomic, assign) BOOL isfreeshipping;  // 是否包邮
@property (nonatomic, assign) BOOL ishome;          // 是否推荐
@property (nonatomic, assign) BOOL isigoods;        // 是否积分商品
@property (nonatomic, assign) BOOL isnew;           // 是否新品
@property (nonatomic, assign) BOOL ispurchasing;    // 是否代购
@property (nonatomic, assign) BOOL isshelves;       // 是否上架
@property (nonatomic, copy) NSArray<OtopsModel *> *otop; // 商品属性


/*
@property (nonatomic, copy) NSString *osid;         // 订单字表id
@property (nonatomic, copy) NSString *osgid;        // 订单店铺商品id
@property (nonatomic, copy) NSString *mid;          // 会员id
@property (nonatomic, copy) NSString *goldprice;    // 商品*数量的总价
@property (nonatomic, copy) NSString *gpricetype;   // 价格类型0单价，1总价
@property (nonatomic, copy) NSString *gshare;       // 商品数量
@property (nonatomic, copy) NSString *gtype;        // 类型
@property (nonatomic, copy) NSString *gdiameter;    // 直径
@property (nonatomic, copy) NSString *gunit;        // 单位
@property (nonatomic, copy) NSString *gvideo;       // 视频
@property (nonatomic, assign) BOOL ispay;           // 是否支付
@property (nonatomic, assign) BOOL isrefund;        // 是否退款
@property (nonatomic, assign) BOOL isbargain;       // 是否讲价
@property (nonatomic, copy) NSArray<ImgsModel *> *img; // 商品图片数组
*/
@end

@interface RefundModel : NSObject
@property (nonatomic, copy) NSString *createtime;   // 申请日期
@property (nonatomic, copy) NSString *mid;          // 会员id
@property (nonatomic, copy) NSString *ogid;         // 订单店铺商品id
@property (nonatomic, copy) NSString *rcontent;     // 退款原因
@property (nonatomic, copy) NSString *rid;          // 退款订单id
@property (nonatomic, copy) NSString *rprice;       // 退款价格
@property (nonatomic, copy) NSString *rstatus;      // 0已提交，1已退款，2卖家同意，3退款驳回
@property (nonatomic, copy) NSString *feedback;     // 卖家反馈
@end

@interface LogisticsCompanyModel : NSObject

@property (nonatomic, copy) NSString *lcid;           // 快递公司ID
@property (nonatomic, copy) NSString *lccompany;      // 快递公司名称
@property (nonatomic, copy) NSString *lcabbreviation; // 快递公司简称
@property (nonatomic, copy) NSString *lccode;         // 快递公司代码
@property (nonatomic, copy) NSString *createtime;     // 创建时间

@end

@interface OrderMainModel : NSObject
@property (nonatomic, copy) NSString *createtime;     // 创建时间
@property (nonatomic, copy) NSString *deliveryaddress;// 收货地址
@property (nonatomic, copy) NSString *deliveryname;   // 收货人
@property (nonatomic, copy) NSString *deliverytel;    // 收货电话
@property (nonatomic, copy) NSString *mid;            // 会员id
@property (nonatomic, copy) NSString *omid;           // 订单id
@property (nonatomic, copy) NSString *ompaytype;      // 支付方式

@end

@interface ShopModel : NSObject

@property (nonatomic, copy) NSString *mid;          // 会员id
@property (nonatomic, copy) NSString *sid;          // 店铺id 0是自营 其它用stype判断
@property (nonatomic, copy) NSString *simg;         // 店铺图片
@property (nonatomic, copy) NSString *sname;        // 店铺名称
@property (nonatomic, copy) NSString *scontent;     // 店铺介绍
@property (nonatomic, copy) NSString *stel;         // 店铺电话
@property (nonatomic, copy) NSString *stype;        // 店铺类型（0个人 1企业）
@property (nonatomic, copy) NSString *createtime;   // 创建时间

@end

@interface OrderModel : NSObject

@property (nonatomic, copy) NSString *createtime;       // 创建(下单)时间
@property (nonatomic, copy) NSString *omid;             // 订单id(退款没有)
@property (nonatomic, copy) NSString *sid;              // 店铺id
@property (nonatomic, copy) NSString *suid;             // 供货商id
@property (nonatomic, copy) NSString *omtype;           // 0普通 1积分 2秒杀 3代购 4附近门店 5促销
//MARK: 个人订单
@property (nonatomic, copy) NSString *mid;              // 会员id
@property (nonatomic, copy) NSString *lcid;             // 物流公司ID
@property (nonatomic, copy) NSString *lccompany;        // 快递公司名称
@property (nonatomic, copy) NSString *lcabbreviation;   // 快递公司简称
@property (nonatomic, copy) NSString *lccode;           // 快递公司代码
@property (nonatomic, copy) NSString *deliveryaddress;  // 收货地址
@property (nonatomic, copy) NSString *deliveryname;     // 收货人
@property (nonatomic, copy) NSString *deliverytel;      // 收货电话
@property (nonatomic, copy) NSString *omlogisticsnumber;// 物流编号
@property (nonatomic, copy) NSString *ompaytype;        // 支付方式
@property (nonatomic, copy) NSString *mypurchasinggoods;
@property (nonatomic, copy) NSString *omfee;            // 运费
@property (nonatomic, copy) NSString *omidcardbackendurl; // 身份证反面
@property (nonatomic, copy) NSString *omidcardfrontendurl;// 身份证正面
@property (nonatomic, copy) NSString *omrealname;       // 真实姓名
@property (nonatomic, copy) NSString *omidnumber;       // 身份证号
@property (nonatomic, copy) NSString *ominvoicename;    // 发票姓名
@property (nonatomic, copy) NSString *ominvoicenumber;  // 发票税号
@property (nonatomic, copy) NSString *ominvoicerise;    // 发票抬头
@property (nonatomic, copy) NSString *ominvoicetype;    // 发票类型
@property (nonatomic, copy) NSString *omnumber;         // 订单总数量
@property (nonatomic, copy) NSString *omprice;          // 订单总金额
@property (nonatomic, copy) NSString *ompaynumber;      // 付款编号
@property (nonatomic, copy) NSString *omintegral;       // 积分
@property (nonatomic, copy) NSString *omrebatee;        // 分成
@property (nonatomic, copy) NSString *omstatus;         // 订单状态0已提交，1已付款，2已发货，3已签收，4已评价，5已取消，6已删除，7退款申请，8已退款(7,8不会返)
@property (nonatomic, assign) BOOL isrefund;            // 是否退款
@property (nonatomic, strong) NSMutableArray<OrdersonModel *> *ordergoods; // 订单字表

@property (nonatomic, copy) NSString *paytime;          // 付款时间
@property (nonatomic, copy) NSString *dealtime;         // 成交时间
/*
@property (nonatomic, copy) NSString *oslogistics;      // 物流单号
@property (nonatomic, copy) NSString *ospaynumber;      // 后台用的
@property (nonatomic, copy) NSString *ospaytype;        // 支付方式
@property (nonatomic, strong) LogisticsCompanyModel *logisticscompany; // 物流公司实体
@property (nonatomic, strong) OrderMainModel *ordermain;// 收货信息
*/

//MARK: 退款订单列表
@property (nonatomic, copy) NSString *ogid;         // 子订单id
@property (nonatomic, copy) NSString *scid;         // 购物车id
@property (nonatomic, copy) NSString *uid;          // 渠道商id
@property (nonatomic, copy) NSString *gcid;         // 一级分类id
@property (nonatomic, copy) NSString *gtcid;        // 二级分类id
@property (nonatomic, copy) NSString *gtrcid;
@property (nonatomic, copy) NSString *gbarcode;     // 条形码
@property (nonatomic, copy) NSString *gdetails;     // 商品详情url
@property (nonatomic, copy) NSString *gextension;   // 推广信息
@property (nonatomic, copy) NSString *ghomeimg;     // 首页缩略图
@property (nonatomic, copy) NSString *gid;          // 商品id
@property (nonatomic, copy) NSString *gimg;         // 商品图片
@property (nonatomic, copy) NSString *gintegral;    // 积分
@property (nonatomic, copy) NSString *gname;        // 商品名称
@property (nonatomic, copy) NSString *gnumber;      // 商品编号
@property (nonatomic, copy) NSString *gprice;       // 现价
@property (nonatomic, copy) NSString *supplyprice;  // 供货价
@property (nonatomic, copy) NSString *gpromotionprice;  // 促销价
@property (nonatomic, copy) NSString *gseckill;     // 秒杀
@property (nonatomic, copy) NSString *gstarttime;   // 秒杀开始时间
@property (nonatomic, copy) NSString *gweight;      // 重量
@property (nonatomic, copy) NSString *ognumber;     // 数量
@property (nonatomic, copy) NSString *ogremark;
@property (nonatomic, assign) BOOL isabroad;        // 是否境外
@property (nonatomic, assign) BOOL isdiscount;      // 是否参与优惠
@property (nonatomic, assign) BOOL isfreeshipping;  // 是否包邮
@property (nonatomic, assign) BOOL ishome;          // 是否推荐
@property (nonatomic, assign) BOOL isigoods;        // 是否积分商品
@property (nonatomic, assign) BOOL isnew;           // 是否新品
@property (nonatomic, assign) BOOL ispurchasing;    // 是否代购
@property (nonatomic, assign) BOOL isshelves;       // 是否上架
@property (nonatomic, copy) NSArray<OtopsModel *> *otop; // 商品属性
@property (nonatomic, copy) NSArray<RefundModel *> *refund;// 取消原因
/*
@property (nonatomic, copy) NSString *osgid;        // 订单店铺商品id
@property (nonatomic, copy) NSString *goldprice;    // 商品*数量的总价
@property (nonatomic, copy) NSString *gpricetype;   // 价格类型0单价，1总价
@property (nonatomic, copy) NSString *gshare;       // 商品数量
@property (nonatomic, copy) NSString *gtype;        // 类型
@property (nonatomic, copy) NSString *gunit;        // 单位
@property (nonatomic, copy) NSString *gdiameter;    // 直径
@property (nonatomic, copy) NSString *gvideo;       // 视频
@property (nonatomic, copy) NSArray<ImgsModel *> *img; // 商品图片数组
@property (nonatomic, assign) BOOL ispay;           // 是否支付
@property (nonatomic, assign) BOOL isbargain;       // 是否讲价

//@property (nonatomic, copy) NSString *wechat; // 微信支付的参数
//@property (nonatomic, copy) NSString *url;    // 支付宝的参数
*/
@end
